#pragma once
#include "rapidxml/rapidxml.hpp"
#include <Ogre.h>

class XMLCommonLoader
{
public:
	XMLCommonLoader(void);
	~XMLCommonLoader(void);

	Ogre::String getAttrib(rapidxml::xml_node<>* XMLNode, const Ogre::String &attrib, const Ogre::String &defaultValue);
	Ogre::Real getAttribReal(rapidxml::xml_node<>* XMLNode, const Ogre::String &parameter, Ogre::Real defaultValue = 0);
	Ogre::int32 getAttribInt(rapidxml::xml_node<>* XMLNode, const Ogre::String &parameter, Ogre::int32 defaultValue = 0);
    bool getAttribBool(rapidxml::xml_node<>* XMLNode, const Ogre::String &parameter, bool defaultValue = false);
};
